home *** CD-ROM | disk | FTP | other *** search
- stop();
- var Value;
- var OnValueChanged;
- if(Value == undefined)
- {
- Value = true;
- }
- mcAllocator._visible = false;
- GetValue = function()
- {
- return Value;
- };
- SetValue = function(value)
- {
- Value = value;
- gotoAndStop(!Value ? 3 : 2);
- if(OnValueChanged != undefined)
- {
- OnValueChanged();
- }
- };
- this.onPress = function()
- {
- SetValue(!Value);
- };
- SetValue(Value);
- this.onRollOver = function()
- {
- Helper.PlaySound("soundMenuToggle");
- mcAllocator._visible = true;
- };
- this.onRollOut = function()
- {
- mcAllocator._visible = false;
- };
-